﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="bor_box">
	<div class="bar_box t_blue" align="center" style="font-size: 11px"><span id="tab-1" style="cursor:pointer">Xem hướng nhà</span> | <span id="tab-2" style="cursor:pointer">Tuổi XD nhà</span></div>
    <div style="display:block">
        <div id="div-tab-1">
            <form enctype="multipart/form-data" method="post" name="directionForm" action="/Fengshui">
                <div class="list_cate_1">
        	            <ul>
            	            <li><label>Năm sinh</label><input type="text" name="NamDuongLich" id="NamDuongLich" value="<%= ViewData["TuoiDuong"] %>" /></li>
                            <li>
                                <label>Giới tính</label>
                                <%= Html.DropDownList("GioiTinh", new SelectList(SDT.Lib.Common.Utils.ListGioiTinh(), "Value", "Text", ViewData["GioiTinh"]), new { })%>     
                             </li>
                            <li>
                                <label>Hướng nhà</label>
                                 <%= Html.DropDownList("HuongNha1", new SelectList(SDT.Lib.Common.Utils.ListHuongNha(), "Value", "Text", ViewData["SelectedHuongNha"]), new { })%>
                            </li>
                        </ul>
                </div>
                <div><input type="submit" class="btn" name="xem" onclick="return checkVal();" value="Xem" /></div>
            </form>
        </div>
        <div id="div-tab-2" style="display: none;">
            <form enctype="multipart/form-data" method="post" name="directionForm" action="/Fengshui/Viewold">
                <div class="list_cate_1">
                    <ul>
                        <li>
                            <label>
                                Năm sinh</label><input type="text" name="NamDuongLich" id="txtYear"  value="<%=ViewData["NamSinhDuongLich"] %>" /></li>
                        <li>
                            <label>
                                Năm XD</label>
                            <%= Html.DropDownList("NamXayNha", new SelectList(SDT.Lib.Common.Utils.ListNam(), "Value", "Text", ViewData["NamDuKienKhoiCong"]), new { })%>
                        </li>
                    </ul>
                </div>
                <div><input type="submit" name="xem1" onclick="return checkVal();" value="Xem" class="btn" /></div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    var $ = jQuery.noConflict();
    $("#tab-1").click(function() {
        $("#div-tab-1").show();
        $("#div-tab-2").hide();
    });
    $("#tab-2").click(function() {
        $("#div-tab-2").show();
        $("#div-tab-1").hide();
    });
</script>